\hypertarget{classsock_1_1http_1_1_http_buffer}{}\section{sock\+:\+:http\+:\+:Http\+Buffer Class Reference}
\label{classsock_1_1http_1_1_http_buffer}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}


缓存类，在响应中存数数据  




{\ttfamily \#include $<$http\+\_\+buffer.\+h$>$}

Inheritance diagram for sock\+:\+:http\+:\+:Http\+Buffer\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classsock_1_1http_1_1_http_buffer}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \hyperlink{classsock_1_1http_1_1_http_buffer}{Http\+Buffer} \hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a5851239b1bc568dcbbdf5999b666c8cc}{Http\+Buffer} (size\+\_\+t \hyperlink{classsock_1_1http_1_1_http_buffer_aa0094576c0b88d1522df80245fc0760b}{size}=0x1000)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a36e0255ffdffb0a6b8c81d209dd66329}{$\sim$\+Http\+Buffer} (void)
\item 
size\+\_\+t \hyperlink{classsock_1_1http_1_1_http_buffer_aa0094576c0b88d1522df80245fc0760b}{size} (void)
\begin{DoxyCompactList}\small\item\em 获取缓存数据长度 \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \hyperlink{classsock_1_1http_1_1_http_buffer_acfedfe4b71fd48594403996beba5f4aa}{append\+Basic} (T \&x)
\begin{DoxyCompactList}\small\item\em 在流末尾写入基础类型 \end{DoxyCompactList}\item 
void \hyperlink{classsock_1_1http_1_1_http_buffer_a1bb09bbc56179c40df4e715ffad4bba4}{append\+Char\+Array} (const char $\ast$x, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em 在缓存末尾写入字符串数组 \end{DoxyCompactList}\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a4f65ad62003a33cdebca55bf869ab376}{operator$<$$<$} (char x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_ab39f09f59dd694c07b1ca2632bb964ca}{operator$<$$<$} (short x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a6d4be9999aa68e0745857a84b3a5fbdf}{operator$<$$<$} (int x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a4c878342e8581e6d186410a17850905c}{operator$<$$<$} (long x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a78e474f934a3f92497200c4792cfdb0e}{operator$<$$<$} (long long x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a99bb19e3814d43d1eba77e4d33ca2c0d}{operator$<$$<$} (float x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a626527f1f248b4fd42a10ee59e9c0d97}{operator$<$$<$} (double x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_aa9ff0e2fd6baac5027493983747a00fb}{operator$<$$<$} (std\+::string \&x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_ae515aacd8b03322c2d98502cb5529f62}{operator$<$$<$} (std\+::string x)
\item 
\hyperlink{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{self} \& \hyperlink{classsock_1_1http_1_1_http_buffer_a1f94d20b364e528a213a16b520c52079}{operator$<$$<$} (const char $\ast$x)
\item 
void \hyperlink{classsock_1_1http_1_1_http_buffer_ac2fe669f7d4e9230a0efad6e928913d3}{write} (const char $\ast$x, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em 向缓存写入数据 \end{DoxyCompactList}\item 
void \hyperlink{classsock_1_1http_1_1_http_buffer_a93779735c436176f24acd931e0b47e7c}{write} (const char $\ast$x)
\begin{DoxyCompactList}\small\item\em 向缓存写入\+C字符串 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classsock_1_1http_1_1_http_buffer_a3e611175a551b64dda26f513067e0d04}{Http\+Session}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
缓存类，在响应中存数数据 

\subsection{Member Typedef Documentation}
\hypertarget{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!self@{self}}
\index{self@{self}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{self}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf Http\+Buffer} {\bf sock\+::http\+::\+Http\+Buffer\+::self}}\label{classsock_1_1http_1_1_http_buffer_a1ecfa607483d6818c6eaddc982dc7949}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classsock_1_1http_1_1_http_buffer_a5851239b1bc568dcbbdf5999b666c8cc}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!Http\+Buffer@{Http\+Buffer}}
\index{Http\+Buffer@{Http\+Buffer}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{Http\+Buffer(size\+\_\+t size=0x1000)}]{\setlength{\rightskip}{0pt plus 5cm}Http\+Buffer\+::\+Http\+Buffer (
\begin{DoxyParamCaption}
\item[{size\+\_\+t}]{size = {\ttfamily 0x1000}}
\end{DoxyParamCaption}
)}\label{classsock_1_1http_1_1_http_buffer_a5851239b1bc568dcbbdf5999b666c8cc}
\hypertarget{classsock_1_1http_1_1_http_buffer_a36e0255ffdffb0a6b8c81d209dd66329}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!````~Http\+Buffer@{$\sim$\+Http\+Buffer}}
\index{````~Http\+Buffer@{$\sim$\+Http\+Buffer}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{$\sim$\+Http\+Buffer(void)}]{\setlength{\rightskip}{0pt plus 5cm}Http\+Buffer\+::$\sim$\+Http\+Buffer (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{classsock_1_1http_1_1_http_buffer_a36e0255ffdffb0a6b8c81d209dd66329}


\subsection{Member Function Documentation}
\hypertarget{classsock_1_1http_1_1_http_buffer_acfedfe4b71fd48594403996beba5f4aa}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!append\+Basic@{append\+Basic}}
\index{append\+Basic@{append\+Basic}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{append\+Basic(\+T \&x)}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void sock\+::http\+::\+Http\+Buffer\+::append\+Basic (
\begin{DoxyParamCaption}
\item[{T \&}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_acfedfe4b71fd48594403996beba5f4aa}


在流末尾写入基础类型 


\begin{DoxyParams}{Parameters}
{\em x} & \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_buffer_a1bb09bbc56179c40df4e715ffad4bba4}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!append\+Char\+Array@{append\+Char\+Array}}
\index{append\+Char\+Array@{append\+Char\+Array}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{append\+Char\+Array(const char $\ast$x, size\+\_\+t length)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Buffer\+::append\+Char\+Array (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{x, }
\item[{size\+\_\+t}]{length}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a1bb09bbc56179c40df4e715ffad4bba4}


在缓存末尾写入字符串数组 


\begin{DoxyParams}{Parameters}
{\em x} & \\
\hline
{\em length} & \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_buffer_a4f65ad62003a33cdebca55bf869ab376}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(char x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{char}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a4f65ad62003a33cdebca55bf869ab376}
\hypertarget{classsock_1_1http_1_1_http_buffer_ab39f09f59dd694c07b1ca2632bb964ca}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(short x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{short}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_ab39f09f59dd694c07b1ca2632bb964ca}
\hypertarget{classsock_1_1http_1_1_http_buffer_a6d4be9999aa68e0745857a84b3a5fbdf}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(int x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{int}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a6d4be9999aa68e0745857a84b3a5fbdf}
\hypertarget{classsock_1_1http_1_1_http_buffer_a4c878342e8581e6d186410a17850905c}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(long x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{long}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a4c878342e8581e6d186410a17850905c}
\hypertarget{classsock_1_1http_1_1_http_buffer_a78e474f934a3f92497200c4792cfdb0e}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(long long x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{long long}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a78e474f934a3f92497200c4792cfdb0e}
\hypertarget{classsock_1_1http_1_1_http_buffer_a99bb19e3814d43d1eba77e4d33ca2c0d}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(float x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{float}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a99bb19e3814d43d1eba77e4d33ca2c0d}
\hypertarget{classsock_1_1http_1_1_http_buffer_a626527f1f248b4fd42a10ee59e9c0d97}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(double x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{double}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a626527f1f248b4fd42a10ee59e9c0d97}
\hypertarget{classsock_1_1http_1_1_http_buffer_aa9ff0e2fd6baac5027493983747a00fb}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(std\+::string \&x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{std\+::string \&}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_aa9ff0e2fd6baac5027493983747a00fb}
\hypertarget{classsock_1_1http_1_1_http_buffer_ae515aacd8b03322c2d98502cb5529f62}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(std\+::string x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{std\+::string}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_ae515aacd8b03322c2d98502cb5529f62}
\hypertarget{classsock_1_1http_1_1_http_buffer_a1f94d20b364e528a213a16b520c52079}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{operator$<$$<$(const char $\ast$x)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf self}\& sock\+::http\+::\+Http\+Buffer\+::operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a1f94d20b364e528a213a16b520c52079}
\hypertarget{classsock_1_1http_1_1_http_buffer_aa0094576c0b88d1522df80245fc0760b}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!size@{size}}
\index{size@{size}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{size(void)}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t sock\+::http\+::\+Http\+Buffer\+::size (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_aa0094576c0b88d1522df80245fc0760b}


获取缓存数据长度 

\begin{DoxyReturn}{Returns}
size\+\_\+t 
\end{DoxyReturn}
\hypertarget{classsock_1_1http_1_1_http_buffer_ac2fe669f7d4e9230a0efad6e928913d3}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!write@{write}}
\index{write@{write}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{write(const char $\ast$x, size\+\_\+t length)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Buffer\+::write (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{x, }
\item[{size\+\_\+t}]{length}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_ac2fe669f7d4e9230a0efad6e928913d3}


向缓存写入数据 


\begin{DoxyParams}{Parameters}
{\em x} & 数据指针 \\
\hline
{\em length} & 数据长度 \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_buffer_a93779735c436176f24acd931e0b47e7c}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!write@{write}}
\index{write@{write}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{write(const char $\ast$x)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Buffer\+::write (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{x}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_buffer_a93779735c436176f24acd931e0b47e7c}


向缓存写入\+C字符串 


\begin{DoxyParams}{Parameters}
{\em x} & \\
\hline
\end{DoxyParams}


\subsection{Friends And Related Function Documentation}
\hypertarget{classsock_1_1http_1_1_http_buffer_a3e611175a551b64dda26f513067e0d04}{}\index{sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}!Http\+Session@{Http\+Session}}
\index{Http\+Session@{Http\+Session}!sock\+::http\+::\+Http\+Buffer@{sock\+::http\+::\+Http\+Buffer}}
\subsubsection[{Http\+Session}]{\setlength{\rightskip}{0pt plus 5cm}friend class {\bf Http\+Session}\hspace{0.3cm}{\ttfamily [friend]}}\label{classsock_1_1http_1_1_http_buffer_a3e611175a551b64dda26f513067e0d04}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
E\+:/git/sock/sock/http/\hyperlink{http__buffer_8h}{http\+\_\+buffer.\+h}\item 
E\+:/git/sock/src/http/\hyperlink{http__buffer_8cc}{http\+\_\+buffer.\+cc}\end{DoxyCompactItemize}
